#include "CGamePlay.h"

CGamePlay::CGamePlay()
{
	m_pStateManager = NULL;
}


CGamePlay::~CGamePlay()
{

}



void CGamePlay::Init()
{
	m_pStateManager->Init();
}


void CGamePlay::Update()
{
	m_pStateManager->Update();
}

void CGamePlay::Render()
{
	m_pStateManager->Render();
}

void CGamePlay::Destroy()
{
	m_pStateManager->Destroy();
}



LRESULT CGamePlay::DisplayWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
	switch(msg)
	{
	case WM_DESTROY:
	case WM_CLOSE:
		PostQuitMessage(0);
		break;
	}
	return DefWindowProc( hwnd , msg , wParam , lParam );
}